/*
 * ArtistaDTIterator.cpp - Grupo 5 - Prog. Avanzada 2011
 *
 *  Javier Dominguez - 4.901.161-6
 *  Marcelo Parada - 1.977.094-9
 *  Rodrigo Ruiz - 4.481.611-2
 *  Maximiliano Silvera - 4.106.938-6
 */

#include "ArtistaDTIterator.h"

ArtistaDTIterator::ArtistaDTIterator(IIterator *iter)
{
	this->iter = iter;
}

void ArtistaDTIterator::next()
{
	iter->next();
}

bool ArtistaDTIterator::hasCurrent()
{
	return iter->hasCurrent();
}

ArtistaDT *ArtistaDTIterator::current()
{
	return (ArtistaDT*) iter->current();
}

ArtistaDTIterator::~ArtistaDTIterator()
{
	iter->~IIterator();

	delete iter;
}
